import T from "T";
class Tmap {
  constructor(container, center = [115.40969, 39.9494], zoom = 7) {
    var vm = this;
    var map = new T.Map(container, {
      minZoom: 10,
      maxZoom: 17,
    });
    //设置显示地图的中心点和级别
    map.centerAndZoom(new T.LngLat(center[0], center[1]), zoom);
    vm.map = map;
  }
}

export default Tmap;
